package tmhm.components;

public class KMADR extends LogicalComponent {	//@Darko

    private final int[] stepsDec = {26, 30, 32, 34, 43, 45, 48, 58};

    public KMADR() {
        super(8, 1, false);
        out[0].setIsInt();
    }

    public void func() {

        int i = 0;
        for (; i < in.length; i++) {
            if (in[i].getBoolVal()) {
                break;
            }
        }
        if(i<in.length)out[0].setIntVal(stepsDec[i]);
    }
}
